home *** CD-ROM | disk | FTP | other *** search
- Short: Return precise execution time of shell commands
- Author: zodiac@darkness.gun.de (Ralph Seichter)
- Uploader: seichter@informatik.uni-bonn.de
- Type: util/misc
-
- After the LZX archiver by Data Compression Technologies was released, a
- friend of mine phoned me and asked if I know of a tool that can be used to
- measure the precise execution time of shell commands. As I didn't know of
- such a beast, I decided to write one myself, although I'm quite certain
- that there are numerous similar tools out there, somewhere. Anyway, here's
- what to do:
-
- instead of 1> foo opt1 opt2 opt3
- simply type 1> TimeCmd foo opt1 opt2 opt3
-
- You'll see the output of 'foo' in the shell window, followed by a line
- of text like "ยป 4.489200 seconds". Guess what that stands for. :) TimeCmd
- uses the timer.device for maximum accuracy, but as this is a multitasking
- OS, the results will probably vary. Run TimeCmd several times if you want
- to make sure that the measured time interval is as accurate as possible.
-
-
- ============================= Archive contents =============================
-
- Original Packed Ratio Date Time Name
- -------- ------- ----- --------- -------- -------------
- 1388 959 30.9% 17-Feb-95 16:47:38 TimeCmd
- 1661 958 42.3% 17-Feb-95 16:46:58 TimeCmd.doc
- -------- ------- ----- --------- --------
- 3049 1917 37.1% 22-Feb-95 20:49:42 2 files
-